package cn.tedu.api;


import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        char[] value = {'a','b','c'};
        String a = new String(value);
        String b = "   abc";

        System.out.println(a.hashCode());
        System.out.println(a.toString());
        System.out.println(a.equals(b));
        System.out.println(a.length());
        System.out.println(a.toLowerCase());
        System.out.println(a.toUpperCase());
        System.out.println(a.startsWith("a"));
        System.out.println(a.endsWith("c"));
        System.out.println(a.indexOf(1));
        System.out.println(a.substring(2));
        System.out.println(a.substring(0,2));
        System.out.println(a.concat("zxyzxy"));
        String c = b.concat("zxyzxyyh ");
        System.out.println(c);
        System.out.println(c.trim());
        System.out.println(c.charAt(8));
        System.out.println(c.indexOf("z"));
        System.out.println(a.lastIndexOf("b"));
        String[] cc = c.split("z");
        System.out.println(Arrays.toString(cc));
        byte[] bs = c.getBytes();
        System.out.println(Arrays.toString(bs));


    }
}
